#!/usr/bin/env bash

#go get -u github.com/gin-gonic/gin
#go mod init nh-poc
#go mod tidy
#go mod vendor


mkdir -p bin/
if [ -f "bin/ali-park-service" ]; then
    rm -f bin/ali-park-service
fi

go build -mod=vendor -v -o bin/ali-park-service cmd/park/main.go
if [ $? -ne 0 ]; then
    echo "build ali-park-service failed"
    exit 1
fi
echo "build ali-park-service is ok"
./bin/ali-park-service


